package com.mdd.common.mapper.goods;

import com.mdd.common.core.basics.IBaseMapper;
import com.mdd.common.entity.goods.GoodsCategoryIndex;
import com.mdd.common.vo.GoodsCategoryListVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

@Mapper
public interface GoodsCategoryIndexMapper extends IBaseMapper<GoodsCategoryIndex> {

    List<GoodsCategoryListVo> getGoodsNum(@Param("categoryIds") Set<Integer> categoryIds);

    Integer getCountById(@Param("categoryId") Integer categoryId);
}
